/**
 * 
 */
package com.primestone.cim.util;

import java.math.BigInteger;



/**
 * @author cesar.mateus
 *
 */
public class NumberUtil {
	
	/**
	 * 
	 */
	public static final BigInteger _NULL_BIGINTEGER_ = null;
	public static final Float _NULL_FLOAT_ = null;
	public static final Byte _NULL_BYTE_ = null;
	public static final Byte ZERO = 0;
	public static final Byte ONE = 1;
	
	public static final int MAX_TRY_REQUEST = 10;
	public static final int MAX_NUM_REQ_BATCH_FOR_WAITING = 50000;
	
	public static final int WAIT_BLOCKS = 10000;
	
	/**
	 * 
	 * @param number
	 * @return
	 */
	public static boolean safe(Number number) {
		if( number == null ) {
			return false;
		}
		return true;
	}
	
	/**
	 * 
	 * @param number
	 * @return
	 */
	public static boolean safePositive(Number number) {
		if( number == null || number.intValue() < 0 ) {
			return false;
		}
		return true;
	}
	
}
